/*
 * @Author: ellery
 * @Date: 2022-08-27 17:18:17
 * @LastEditTime: 2022-08-28 00:09:30
 * @LastEditors: ellery
 * @Description: 留这份作为调用模板，切勿删除
 * @FilePath: \vue2-eslint-model\src\store\modules\test.js
 * Copyright (c) 2022 by ellery, All Rights Reserved.
 * 愿天堂没代码
 */
export default {
  namespaced: true,
  state: {
    testState: "--state--",
    testMutations: "--mutations--",
    testActions: "--actions--",
    testGetters: "--getters--"
  },
  getters: {
    testState(state) {
      return state.testState;
    },
    testMutations(state) {
      return state.testMutations;
    },
    testActions(state) {
      return state.testActions;
    },
    testGetters(state) {
      return state.testGetters;
    }
  },
  mutations: {
    SET_STATE(state, data) {
      state.testState = data;
    },
    SET_MUTATIONS(state, data) {
      state.testMutations = data;
    },
    SET_ACTIONS(state, data) {
      state.testActions = data;
    }
  },
  actions: {
    SET_ACTION_ACTIONS({ commit }, data) {
      setTimeout(() => {
        commit("SET_ACTIONS", data);
      }, 2000);
    }
  },
  modules: {}
};
